package com.canyou.system.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.canyou.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * oauth2客户端表
 * </p>
 *
 * @author canyou
 * @since 2019-06-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_oauth_client")
@ApiModel(value="OauthClient对象", description="oauth2客户端表")
public class OauthClient extends BaseModel {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "客户端ID")
    @TableField("client_id")
    private String clientId;

    @ApiModelProperty(value = "客户端密钥")
    @TableField("client_secret")
    private String clientSecret;

    @ApiModelProperty(value = "客户端备注")
    @TableField("remark")
    private String remark;

    @TableField("resource_ids")
    private String resourceIds;

    @TableField("scope")
    private String scope;

    @TableField("authorized_grant_types")
    private String authorizedGrantTypes;

    @TableField("web_server_redirect_uri")
    private String webServerRedirectUri;

    @TableField("authorities")
    private String authorities;

    @TableField("access_token_validity")
    private Integer accessTokenValidity;

    @TableField("refresh_token_validity")
    private Integer refreshTokenValidity;

    @TableField("additional_information")
    private String additionalInformation;

    @TableField("autoapprove")
    private String autoapprove;

}
